KVERS = $(shell uname -r)

obj-m += driver_main.o

build: kernel_modules

kernel_modules:
	make -C /lib/modules/$(KVERS)/build M=$(CURDIR) modules


clear:
	make -C /lib/modules/$(KVERS)/build M=$(CURDIR) clean


install:
	sudo dmesg -C
	sudo insmod driver_main.ko

uninstall:
	sudo rmmod driver_main

msg:
	dmesg
